enhanced class 1 bluetooth v2.1 module f irmware u ser s g uide v ersion 1. 3 part # bt740 - sa, bt74 0 - sc am ericas: +1 - 800 - 492 - 2320 option 2 europe: +44 - 1628 - 858 - 940 hong kong: +852 - 2923 - 0610 www.lairdtech.com/bluetooth
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 2 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 r evision h istory revision revision date description 1.0 24 june 13 first release 1.1 16 july 13 minor changes to gpio 1.2 25 august 14 addition of appendices for at commands, s registers, and error codes. 1.3 19 june 15 updated command examples
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 3 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 t able of c ontents revision history ................................ ................................ ................................ ................................ ............... 2 table of contents ................................ ................................ ................................ ................................ ........... 3 1 at command set ................................ ................................ ................................ ................................ ..... 4 2 s registers ................................ ................................ ................................ ................................ .............. 24 3 multipoint protocol ................................ ................................ ................................ ................................ 39 4 module events ................................ ................................ ................................ ................................ ........ 95 5 hdp profil e related events ................................ ................................ ................................ .................... 102 6 debug events ................................ ................................ ................................ ................................ ....... 103 7 data channels ................................ ................................ ................................ ................................ ...... 105 8 multipoint application examples ................................ ................................ ................................ .......... 109 9 at application examples ................................ ................................ ................................ ...................... 124 10 appendices ................................ ................................ ................................ ................................ .......... 149 10.1 at commands ................................ ................................ ................................ ............................ 149 10.2 s registers ................................ ................................ ................................ ................................ .. 150 10.3 error responses ................................ ................................ ................................ .......................... 153
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 4 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 1 at c ommand s et 1.1 introduction to at commands this chapter describes the at protocol used to control and configure the bt740 - sx bluetooth module s after it is configured to present an at protocol instead of the alternate multipoint packet - based interface. the multipoint protocol is also described in this document. the protocol is similar to the industry standard hayes at protocol used in telephony modems, as both types of devices ar e connection oriented. the extended at command set make s the laird device performs the three core actions of a bluetooth device: establis h bluetooth connections, pair, and inquire . many other provided at commands perform ancillary functions, such as truste d device database management and s register maintenance. just like telephony modems, the laird device powers up in an unconnected state and only respond s via the serial interface. in this state the laird device can respond to bluetooth inquiries. then, jus t like c ontrolling a modem, the host issue s at commands which map to various bluetooth activities. these at commands have appropriate counterparts in the alternate multipoint packet based protocol which also achieve the same goal. the nature of at protoc ol allows it to control and manag e only one connection at a time; this is in contrast to the multipoint packet protocol which can simultaneously control many connections. the main advantage at protocol offers is simplicity. th e module has a serial interf ace through which the at protocol is channeled , which can be configured for ba ud rates from 1200 up to 921600 and has an rf communications end point. the default baud rate for at command mode modules is 9600 bps. the rf communications endpoint has a conc ept of connected and unconnected modes and the at protocol at the serial interface has a concept of command and data modes. this leads to the matrix of states shown below. rf unconnected rf connected command mode allowed allowed data mode illegal allowed the combination data + rf unconnected mode does not make sense and is ignored. navigation between these states uses the at command/responses , described in detail in subsequent sections. there are many references to the term s register in the r est of this document. these are an array of integer values stored in non - volatile memory which are used to configure the module so that it behaves in a certain way afte r powering . these s register s have two attributes; a value and an id. the id is a p ositive integer number used in appropriate com mands to read/write the values. 1.2 at protocol mode 1.2.1 at protocol assumptions the csr (cambridge silicon radio) bluetooth chipset in laird devices has limited memory resource s . therefore it is not proposed that the re be full implementation of the at p rotocol as seen in modems. the claim made for this device is that it has a protocol similar to an at modem. in fact, the protocol is similar
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 5 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 enough so that existing source code written for modems can be used with very l ittle modification with a laird device. therefore the following assumptions are made: ? all commands terminate by the carriage return character 0x0d, represented b y the string in subsequent sections . it cannot be changed at runtime. ? all responses from the laird device have carriage return and linefeed characters preceding and appending the response. these dual character sequences have the values 0x0d and 0x0a respectively and are represented by the string . ? all bluetooth addres ses are represented by a fixed 12 digit case insensitive hexadecimal string. ? all bluetooth device class codes are represented by a fixed 6 digit case insensitive hexadecimal string. ? most new bluetooth specific commands are identified by the string +btx, wh ere x is generally a mnemonic of the intended functionality. 1.2.2 protocol activation depending on the variant of the module, the at protocol need s to activate so that on power up it presents this protocol interface instead of the al ternate multipoint protocol. the method that is always available and work s is activation via s register 255 in multipoint mode (and mapped to 9255 in at mode), where setting a value of 1 selects multipoint packet protocol and a value of 2 selects at proto col. note : changes to this s register store in non - volatile memory at time of change and does not require the at&w command (or the equivalent in multipoint mode cmd_store_reg) to commit to non - volatile memory. optionally , some firmware variants allow a val ue of 0 in this s register and in this case on power up the protocol selection depends on the state of one of the gpio pins (user settable) so that one state forces at and the other forces multipoint. 1.3 a t commands and responses this section describes all available at commands. many commands require mandatory parameters and some take optional parameters. these parameters are integer values, strings, bluetooth addresses or device classes. the following convention is used when describing the various at commands , and the re sponse to a command is also stated. a 12 character bluetooth address consisting of ascii characters 0 to 9, a to f and a to f. of ascii characters 0 to 9, a to f and a to f. preceded by the $ character. a 4 character uuid number consisting of ascii characters 0 to 9, a to f and a to f.
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 6 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 1.3.1 enter local command mode command: ^^^ response: ok description: when in data and connected mode, the host can force the device into a command and connected mode so that at c ommands can be issued to the device. the character in this escape sequence is specified in the s2 register, therefore it can be changed. in addition, the escape sequence guard time is specified by s register 12. by default the guard time is set to 100 mill iseconds . please refer to the dropping connections section for more related information. in modems this escape sequence is typically {delay} + {delay} + {delay} + {delay}, and configures by default to avoid confusion wh en the module is providing access to a modem. 1.3.2 command mode status check command: at response: ok description: ok 1.3.3 accept incoming connection (answer call) command: ata response: connect 123456789012,,< where is the profile with the established connection. d escription: accept an incoming connection, which is indic ated by the unsolicited string ring 123456789012 , where 123456789012 is the bluetooth address of the connecting device. 1.3.4 make outgoing connection command: atd, response: connect 123456789012,,> or no carrier description: make a connection to device with bluetooth address and profile . the is an optional parameter which specifies the uuid of the profile server to attach to, and if not supplied then uses the def ault uuid for spp (1101) . the uuids in the following table are allowed: profile name uuid serial port 1101 hid 1124 hdp use appropriate canned hdp commands in s tead
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 7 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 1.3.5 enable/disable echo command: aten response: ok or error nn description: this command enables or disables the echo of characters to the host . the default echo condition set s via s register 506. this command does not affect the s register 506. 0 disable echo. 1 enable echo. all other values of n generate an error. 1.3.6 drop connection command: ath response: < cr,lf>no carrier or ok description: drop an existing connection or reject an incoming connection indicated by the unsolicited ring message. if a connection does not exist then the response is ok. 1.3.7 information command: atin response: for recognized values of n. as appropriate ok all other values of n generate laird technologies inc (c)2010 ok description: this return s the information in the following table about the laird device. the list is not exhaustive as there are some values of n which generate information for use by laird support. table 1 - 1 : laird device information index description 0 the product name/variant. 1 the underlying ccl stack version information. 3 the laird firmware revision format a.b.c.f.g (see 333 for further details) 333 the full laird firmware revision format a.b.c.d.e.f.g , where a = hardware platform b = major stack version number (changes when ccl stack changes : see ati1) c = major app version number (changes when number of profiles change) d = developer id
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 8 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 index description e = branch id f = build number ( divisible by 10 for production releases and odd for engineering) g = twig number (will normally be 0, but minor releases on sub - branches is non - zero) 4 a 12 digit hexadecimal number corresponding to the bluetooth address of the laird device. 6 the maximum size of trusted device database. 9 0 if not in a connect state and 1 if in a connect state. 11 the re ason why a no carrier results in the most recent attempt at making an outgoing connection. where the response values are as follows: 3 = normal disconnection 13 current sniff parameters in two lines as follows a,b,c,d a,b,c,d where first line is in units of milliseconds and the second in baseband slots. a = attempt (see s reg 73, 561 in at mode) b = timeout (see s reg 74, 562 in at mode)) c = minimum interval (see s reg 75, 563 in at mode) d = maximum interval (see s reg 76, 564 in at mode) 21 current discoverable mode: 0 = not discoverable 1 = generic discoverable mode 2 = limited discoverable mode 22 current connectable mode: 0 = not connectable 1 = connectable 23 same as (9) above. 0 if not in a connect state and 1 if in a connect state. 42 current state of the module 14 = not discoverable and not connectable and not in connection 18 = connected mode 174 = connectable and discoverable 173 = connectable only 172 = discover able only 56 the number of devices in the trusted device database in format a,b where a is the number of devices in the rolling database and b in the persistant database. 100 returns the hardware id (100 for btm4xx platform) 201 uart receive buf fer and hardware handsha king information in the format: a,b,c where a = uart receive buffer size b = threshold at which the rts output line deasserts c = threhsold at which the rts output line re - asserts again.
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 9 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 index description 202 the number of times the uart_dsr input line has been detected to toggle since the module was powered or reset via appropriate commands in at and mp mode. 224 - 239 memory diagnostics information in the format a,b where a is the size of pmalloc block and b is the number that are free. low b values imply trhe module is operating at the limits of its heap resource. 1.3.8 enter data mode when connected and in command mode command: ato response: connect o r error nn description: return to data mode. assume that the module is in data mode after it receives an ok . responds with an error if there is no bluetooth connection. 1.3.9 set s register command: atsn=m response: ok or error nn description: as with modems, the lair d bluetooth module employs a concept of registers used to store parameters, such as escape sequence character, inquiry delay time , etc. the value p art m can be enter ed as decimal or hexadecimal. a hexadecimal value is specified via a $ leading characte r. for example , $1234 is a hexadecimal number. when s register values change , the changes are not normally stored in non - volatile memory until the at&w command is used . note that at&w d oes not affect some s registers; for example 520 to 525 , or 9240 to 925 5 , as they are updated in non - vol atile memory when the command processes . 1.3.10 read s register value in decimal or hex command: atsn?<$> response: for recognised values of n: as appropriate ok for unrecognised values of n: error nn description: this return s the current value of register n. if the optional $ character supplies after the ?, then the returned value is hexadecimal with a leading $. for example , the value 1000 returns as $3e8 . 1.3.11 read s registers command: atsn=? response: for recognised values of n: nnnn..mmmm ok for unrecognised values of n:
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 10 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 error nn description: this return s the valid range of values for register n. 1.3.12 send data to peer when in command mode command: atx response: ok or if a connection does not exist error 56 description: this command sends data to the remote device when in local command and connected mode. if a non - printable ascii character needs sen ding then insert the escape sequence \ hh where hh are two hexadecimal digits. the three character sequence \ hh converts into a single byte before transmission to the peer. note: for hid connections, the entire is deemed to be a single hid report. 1.3.13 factory default (full) command: at&f* response: ok or error nn description: this command erases all user parameters in non - volatile memory. the new settings become active after a reset. 1.3.14 factory default (preserve uart settings) command: at&f+ response: ok or error nn description: this command erases all user parameters in non - volatile memory except s registers 520 to 525 , and 9240 to 9255. this means tha t the trusted device database clears, but at protocol mode is retain ed and uart config (baudrate, stopbits etc) is preserved. the new protocol and settings become active after a reset.
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 11 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 1.3.15 factory default (preserve protocol setting) command: at&f*at* response: ok or error nn description: this command erases all user parameters in non - volatile memory except s register 9255. this means that the trusted device database clears , but at protocol mod e retains and uart parameters reset to factory default settings. the new protocol and settings become active after a reset. 1.3.16 factory default (full, then change into mp mode) command: at&f*mp* response: ok or error nn description: this command erases all user parameters in non - volatile memory including s register 9255 and s reg 9255 is set to 1 for mp mode. this means that the trusted device database clears, and protocol set s to mp mode and all uart parameters are reset to factory default settings. the new protocol and settings become active after a reset. 1.3.17 write s registers to non - vo latile memory command: at&w response: ok or error nn description: writes current s register values to non - v olatile memory so that they retain over a power cycle. 1.3.18 write to blob(0) command: at+btb= response: ok or error nn description: this command clear s blob (0) first and then appended to that blob after the string de - escapes . this allows binary data to load into the blob buffer for subsequent proce ssing using the at+btbnnnn command syntax.
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 12 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 1.3.19 append to blob(0) command: at+btb+ response: ok or error nn description: this command append s blob (0) after the string de - escapes . this allows binary data to load into the blob buffer for subsequent processing using the at+btbnnnn command syntax. 1.3.20 action and process data in blob(0) command: at+btbnnnn response: ok or error nn descripti on: this command process es blob (0) as per the action specified by nnnn. the actions are described briefly as per the table below (more details in the mp protocol section): index action 0 clear blob(0) 1 get byte count in blob(0) 2 destructively read blob(0). data sends so that non - printable data bytes are escaped with \ hh. 3 save blob(0) as hid descriptor(0) in non - volatile memory 4 load blob(0) as hid descriptor(0) from non - volatile memory 5 save blob(0) as hid service name in non - volatile memory 6 load blob(0) as hid service name from non - volatile memory 7 commit blob(0) as enhanced inquiry data 8 save blob(0) as enhanced inquiry data in non - volatile memory, to be used automatically after subsequent resets 9 load blob(0) from the enhanced inquiry data from non - volatile memory. 1.3.21 remove trusted device command: at+btd response: ok or error nn description: this command remove s the specified device from the list of trusted devices in the non - volatile database. if the device is not in the database then the response is still an ok. error response is for when the address is not a 12 character hex string. 1.3.22 remove all trusted devices command: at+btd* response: ok or error nn
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 13 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 description: this command remove s all devices from the list of trusted devices in the non - volatile database. the device does not ask for confirmation. warning : if you make a connection, the link key caches in the underlying stack. so if you subsequently delete the key using at+btd* and immediately request an authenticated connection to the same device, then the connection may be established. to ensure this does not happen, send atz after the at+btd*. 1.3.23 get the remote friendly name command: at+btf response: friendly name ok or error nn description: this command gets the remote friendly name of the specific address. if the friendly name has non printable characters (including the character ) then those characters escape into a 3 character \ hh sequence. 1.3.24 enable connectable mode command: at+btg response: ok or er ror nn description: enable page scanning only and wait s for a connection from any device. inquiry scans are disabled. the page sca n window and interval timing derive s from s reg 9009 and 9010. use ati21 and ati22 to determine the discoverable and connectable modes at any time. 1.3.25 inquire command: at+bti response: 12346789012 12345678914 ok description: this make s the device perform an inquiry for duration milliseconds and max number of unique responses, where s register 517 specifies duration and s register 518 specifies max . only the bluetooth address of responding devices is listed. 1.3.26 inquire and display devclass too command: at+btiv response: 12346789012,123456 12345678914,123456 ok description: as per at+bti but the response includes the device class code for all inquiry responses.
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 14 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 1.3.27 inquire a nd get friendly names too command: at+btin response: 1234 6789012,123456,"laird bt module" 12345678914,123456, nokia n70" ok description: as per at+bti but the response includes the device class code and friendly name for all inquiry responses. the friendly name strings are in utf - 8 format as per the bluetooth specification. 1.3.28 inquire w ith enhanced inq resp command: at+btie response: 12346789012,123456,, - 45," \ 0a \ 08laird fef" 12345678914,123456,", - 75, ok description: as per at+bti but the resp onse includes the device class code, rssi, and the enhanced inquiry information. the friendly name is not acquired, as it is a time - expensive procedure and therefore an empty string sends as a placeholder. 1.3.29 set pincode o r passcode command: at+btk= response: ok or error nn description: this command provide s a passkey when pin? 12345678 or p asskey? 12345678 indications are receive d asynchronously. the string length must be in the range 1 to 16, f or pin? otherwise an error returns . the string length must be exactly 6 characters, for passkey? otherwise an error returns and each character must be a decimal digit in the range 0 to 9. if there is no ongoing pairing in progress, then the stores in non - volatile memory and may be used in subsequent legacy pairing attempts. to delete the pincode stored in non - volatile memory, submit the command with an empty string. a stored value is not used for a passkey? event. 1.3.30 reject yes/no simple secure pairi ng command: at+btkn response: ok or error nn description: when the module configures for display with yes/no security via s register 9006 , this command convey s a no for the simple pairing procedure. this command is sen t as a result of receiving a passkey? 2 asynchronous response. 1.3.31 accept yes/no simple secure pairing command: at+btky
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 15 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 response: ok or error nn description: when the module configures for display with yes/no security via s register 9006 then this command convey s a yes for the simple pairing procedure. this command is s ent as a result of receiving a passkey? 2 asynchronous re sponse. 1.3.32 set friendly name i n non - vol memory command: at+btn= response: ok or error nn description: this sets the default friendly name of this device as s een by other devices. it is s tored in non - volatile memory. use at+btn? to read it back. an empty string () delete s the string from non - volatile memory which force s the use of the default friendly name . 1.3.33 read friendly name from non - vol memory command: at+btn? response: < cr,lf>my friendlyname ok or error nn description: read the friendly name from non - volatile memory. 1.3.34 enable connectable+discoverable mode command: at+btp response: ok or error nn description: enable page and inquiry scanning and wait for a connection from any device. the page sca n window and interval timing derives from s reg 9009 and 9010 . the inquiry sc an window and interval timing derives from s reg 9007 and 9008 . 1.3.35 enable di scoverable mode only command: at+btq response: ok or error nn description: set discoverable mode only by enabling inquiry scanning. the inquiry sca n window and interval timing derives from s reg 9007 and 9008 . use ati21 and ati22 to determine the discoverable and connectable modes at any time .
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 16 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 1.3.36 set outgoing peer address command: at+btr response: ok description: this command stores a peer address for outbound connections in non - volatile memory. a value of 000000000000 has the special meaning of invalid peer address. this command is used to set up a module in pure cable replacement mode. if s register 512 = 1 and the peer address is not 000000000000, then it wi ll periodically (time specified via s register 505) attempt to connect to the peer address specified. in this circumstance all commands from the host are buffered in the receive buffer, until a bluetooth connection is established with the peer device and i t then sends the buffer across. this means if the peer device is not nearby and will never be there, the device effectively becomes useless, as in this circumstance a host would want to get attention of the at parser to send it new commands C probably one to delete the peer device. in this circumstance, a recovery is possible by one of two methods. the first method assumes that the dtr from the host is connected to the dsr line of the module and the second method assumes that this connection is absent. in the first method it is enough to deassert the dtr line from the host and that will abort the autoconnect cycle. the second method is initiated by resetting the device and then ensuring that the text string at+bt&bism& is sent (where is the carri age return character). there is special code which looks out for this magic command and terminates the autoconnect cycle if it sees it and confirms to the host of that fact by sending an ok response. 1.3.37 delete outgoing peer address command: at+btr response: ok description: this command is used to display the peer address stored in non - volatile memory, used to put the ezurio device in pure cable replacement mode. 1.3.38 read outgoing peer address command: at+btr? response: 12346789012 ok description: this command deletes the peer address previously stored using at+btr. 1.3.39 list trusted device command: at+btt? response: 12346789012 < cr,lf>12345678913 12345678914 ok or error nn description: this command list s the contents of both the rolling and the persist trusted device database. the link key does not display so the response is as shown above. if the list is
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 17 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 empty , only the ok response sends; otherwise an ok terminate s the list. use the command ati6 to read the maximum size of the trusted device database. note: all new successful pairings automatically store i n the rolling database. if the database is full, then the oldest is deleted to make room for the new one. to ensure a link key is nev er deleted, transfer it to the persist database using the command at+btt described in detail later. 1.3.40 list trus ted device command: at+bttn? response: 12346789012 12345678913 12345678914 ok or error nn description: this command list s the contents of either the rolling or the per sist trusted device database, w here n=0 for the rolling database and 1 for the p ersist database. the link key does not display so the response is as shown below. if the list is e mpty then just the ok response is sen t ; otherwise an ok terminate s the list. use the comman d ati6 to read the maximum size of the trusted device database. 1.3.41 transfer device to persist list command: at+btt response: ok or error nn description: when a successful pair ing occurs, the new link key automatically stores in the rolling database where if the database is full, the oldest device is deleted. this poses a risk of a trusted device automatically deleting, especially when the module is in just works simple pairing mode and so pairings can occur without the host being involved and so there is a definite risk of link key deletion. this command transfer s a device specified via the address supplied to the persist database so that a trusted device is never deleted automatically. 1.3.42 initiate a pairing command: at+btw response: ok or error nn description: this initiates pairing with a device whose bluetooth address is < bd_addr>. an ok response is s ent immediately and whe n the pin or passcode is required. a synchronous indications are s ent to the host in the form pin? or passkey? or pair ? where the address confirms the device with which the pairing is to be performed. to supply a pin or passco de, use the at+btk command. t o respond with a
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 18 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 yes or no, use the command at+btky or at+btkn respectively. for a suc cessful pairing, the link key automaticall y stores in the rolling database which can be queried using the at+btt0? command. note: the ok response is s ent immediately on receipt of the at+btw command. on pairing completion, an unsolicited message is s ent to the host in the form pair n , where n is 0 for a successful pairing. 1.3.43 disable connectable and discoverable mode command: at+btx response: ok or error nn description: disable page/inquiry scanning. this means it does not accept incoming connections or inquiry requests. more specifically it negates the effect of at+btq, at+btg and at+btp commands. use ati21 and ati22 to determine the discoverable and connectable modes at any time . 1.3.44 hdp: associate the agent with manager command: at+haahhhh response: ok or error nn description: this is a health device profile (hdp agent related command. refer to application examples for details). please note error 59 implies that the profile has not been activated which means bit 2 in s reg 9003 is not set and s reg 9070 is not 0. hhhh is obtained as a response to the at+hab command . 1.3.45 hdp: bind manager to agent command: at+hab,iiii response: hhhh ok or error nn description: this is a health device profile (hdp agent relat ed command. refer to application examples for det ails). please note error 59 implies that the profile has not been activated which means bit 2 in s reg 9003 is not set and s reg 9070 is not 0. iiii is the nominal code for the data specialization. 1.3.46 hdp: disassociate the agent from manager command: at+ha dhhhh response: ok or error nn description: this is a health device profile (hdp agent relat ed command. refer to application examples for details). please note error 59 implies that the profile has not been activated which means bit 2 in s reg 9003 is not set and s reg 9070 is not 0.
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 19 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 1.3.47 hdp: endpoint definition in sdp record command: at+hae,iiii,endpointname response: ok or error nn description: this is a health device profile (hdp agent related command. refer to application examples for details). please note error 59 implies that the profile has not been activated which means bit 2 in s reg 9003 is not set and s reg 9070 is not 0. it insert s details in the sdp record. 1.3.48 hdp: read attribute value in agent command: at+haghhhh,aaaa,ssss response: ok or error nn description: this is a health device profile (hdp agent related command. refer to application examples for detai ls). please note error 59 implies that the pro file has not been activated which means bit 2 in s reg 9003 is not set and s reg 9070 is not 0. 1.3.49 hdp: activate sdp record for agent command: at+hal response: ok or error nn description: this is a health device profile (hdp agent related command. refer to application examples for details). please note error 59 implies that the profile has not been activated which means bit 2 in s reg 9003 is not set and s reg 9070 is not 0. 1.3.50 hdp: trigger agent scan report command: at+harhhhh,pppp[,aaaa[,aaaa[]]] response: ok or error nn description: this is a health device profile (hdp agent r elated command. refer to application examples for details). please note error 59 implies that the profile has not been activated which means bit 2 in s reg 9003 is not set and s reg 9070 is not 0. 1.3.51 hdp: write attribute value to agent command: at+hashhhh,aaaa,ssss,ddddd response: ok or error nn description: this is a health device profile (hdp agent related command. refer to application examples for details). please note error 59 implies that the profile has not been activated
enhanced class 1 bluetooth v2.1 module firmware users guide embedded wireless solutions support center: http://ews - support.lairdtech.com www.lairdtech.com/bluetooth 20 americas: +1 - 800 - 492 - 2320 europe : +44 - 1628 - 858 - 940 hong kong: +852 2923 0610 which means bit 2 in s reg 9003 is not set and s reg 9070 is not 0. 1.3.52 hdp: endpoint definition in sdp record (manager) command: at+hme,iiii,endpointname response: ok or error nn description: this is a health device profile (hdp manager related command. refer to application examples fo r details. please note error 59 implies that the profile has not been activated which means bit 2 in s reg 9003 is not set and s reg 9070 is not 1. 1.3.53 hdp: endpoint definition in sdp record (manager) command: at+hme,iiii,endpointname response: ok |